package com.becca.cake.core.excel.excelReader;

import java.io.InputStream;
import java.util.Collection;

import jxl.Workbook;

/**
 * 读取Excel接口定义
 * @author hejinguo
 * @version $Id: ExcelReaderHandle.java, v 0.1 2014-4-21 下午10:31:41
 */
public interface ExcelReaderHandle<T> {
    /**
     * 根据 InputStream获得工作薄对象
     * @param ins
     * @return
     */
    Workbook getWorkBook(InputStream fileUpload);

    /**
     * 读取Excel返回集合信息
     * @param fileUpload
     * @param filesName
     * @param rowStart
     * @param columnStart
     * @return
     */
    Collection<T> readImportExcel(InputStream fileUpload, String filesName, int rowStart,
                                  int columnStart);
}
